<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
  <link href="//gmpg.org/xfn/11" rel="profile">
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="generator" content="Hugo 0.69.0" />

  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>Django启动 &middot; 宋申奥的博客</title>

  
  <link type="text/css" rel="stylesheet" href="/hugo_blog/css/print.css" media="print">
  <link type="text/css" rel="stylesheet" href="/hugo_blog/css/poole.css">
  <link type="text/css" rel="stylesheet" href="/hugo_blog/css/syntax.css">
  <link type="text/css" rel="stylesheet" href="/hugo_blog/css/hyde.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface|PT+Sans:400,400i,700">


  
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
  <link rel="shortcut icon" href="/favicon.png">

  
  
</head>

  <body class="theme-base-0f ">
  <aside class="sidebar">
  <div class="container sidebar-sticky">
    <div class="sidebar-about">
      <a href="/hugo_blog/"><h1>宋申奥的博客</h1></a>
      <p class="lead">
       这里是宋申奥的个人博客 
      </p>
    </div>

    <nav>
      <ul class="sidebar-nav">
        <li><a href="/hugo_blog/">Home</a> </li>
        
      </ul>
    </nav>

    <p>&copy; 2020. All rights reserved. </p>
  </div>
</aside>

    <main class="content container">
    <div class="post">
  <h1>Django启动</h1>
  <time datetime=2020-04-21T13:40:46&#43;0800 class="post-date">Tue, Apr 21, 2020</time>
  <h1 id="将项目所需的依赖导入txt中">将项目所需的依赖导入.txt中</h1>
<h5 id="pip-freeze--requirementstxt">pip freeze &gt; requirements.txt</h5>
<hr>
<h1 id="将项目requirementstxt文件中项目的依赖安装好">将项目requirements.txt文件中项目的依赖安装好</h1>
<h5 id="pip-install--i-httpspypitunatsinghuaeducnsimple--r-requirementstxt">pip install -i <a href="https://pypi.tuna.tsinghua.edu.cn/simple">https://pypi.tuna.tsinghua.edu.cn/simple</a> -r requirements.txt</h5>
<hr>
<h1 id="数据库迁移">数据库迁移</h1>
<h5 id="python-managepy-makemigrations">python manage.py makemigrations</h5>
<h5 id="python-managepy-migrate">python manage.py migrate</h5>
<h1 id="django启动命令">Django启动命令</h1>
<h5 id="python-managepy-runserver">python manage.py runserver</h5>
<p><img src="/hugo_blog/c771720dbd691b331bcad9a158f499aa.jpg" alt="每日一图"></p>

</div>


    </main>

    
  </body>
</html>
